package sj3;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserTest3 {
    //测试使用p命名空间为业务Bean注入Dao对象
    @Test
    public void testUser3(){
        ApplicationContext context=new ClassPathXmlApplicationContext("sj3/sj3.xml");
        User user=(User) context.getBean("user");
        System.out.println(user.toString());
    }
}
